ARM platforms: rationalise memory attributes of shared memory
authorJuan Castillo <[email protected]>
Wed, 13 Jan 2016 15:01:09 +0000 (15:01 +0000)
committerJuan Castillo <[email protected]>
Thu, 18 Feb 2016 09:31:15 +0000 (09:31 +0000)
commit74eb26e4098d0a1f5c6ef49c1355e99d80027f36
tree336eda617523eca39887df1fa672904e14531948
parent6770d65ff5cb85b5c1a47cf9f7bbf5630234d6da
ARM platforms: rationalise memory attributes of shared memory

The shared memory region on ARM platforms contains the mailboxes and,
on Juno, the payload area for communication with the SCP. This shared
memory may be configured as normal memory or device memory at build
time by setting the platform flag 'PLAT_ARM_SHARED_RAM_CACHED' (on
Juno, the value of this flag is defined by 'MHU_PAYLOAD_CACHED').
When set as normal memory, the platform port performs the corresponding
cache maintenance operations. From a functional point of view, this is
the equivalent of setting the shared memory as device memory, so there
is no need to maintain both options.

This patch removes the option to specify the shared memory as normal
memory on ARM platforms. Shared memory is always treated as device
memory. Cache maintenance operations are no longer needed and have
been replaced by data memory barriers to guarantee that payload and
MHU are accessed in the right order.

Change-Id: I7f958621d6a536dd4f0fa8768385eedc4295e79f
include/lib/aarch64/arch_helpers.h
include/plat/arm/common/arm_def.h
include/plat/arm/css/common/css_def.h
plat/arm/board/fvp/include/platform_def.h
plat/arm/common/arm_pm.c
plat/arm/css/common/css_scp_bootloader.c
plat/arm/css/common/css_scpi.c